<include file="Index:header" />
<!--头部 end -->
<!--左栏 starts -->
<div class="container-fluid">
		<div class="row-fluid">
			<include file="left" />

			<div id="content" class="span10">
			<!-- content starts -->
<!--左栏 end -->
<ul class="breadcrumb">
      <li>
        <a href="__APP__/TIFAWEB_DSWJCMS.html">首页</a> <span class="divider">/</span>
      </li>
      <li class="active">充值列表</li>
      <div  class="pull-right">
      <a href="#screening" data-toggle="modal">筛选</a>&nbsp;&nbsp;
      <a data-toggle="modal"  data-rel="tooltip" href="#mod">导出</a></div>
</ul>
<input id="datasort" type="hidden" value="1" />
<table class="table table-striped table-bordered table-condensed  ">
            <thead>
              <tr>
              	<th>用户名</th>
                <th>订单号</th>
                <th>流水号</th>
                <th>交易帐号</th>
                <th>充值类型</th>
                <th>充值金额</th>
                <th>手续费</th>
                <th>到账金额</th>
                <th>充值时间</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
<volist name="list" id="vo">
                <tr>
                <td>
                       {$vo.username}
                </td>
                <td>
                       {$vo.nid}
                </td>
                <td>
                       {$vo['number']?$vo['number']:'无'}
                </td>
                <td>
                       {$vo['oid_name']?$vo['oid_name']:'无'}
                </td>
                <td>
                      {$vo.genre_name}
                </td>
                <td>
                      {$vo.money}
                </td>
                <td>
                      {$vo.poundage}
                </td>
                <td>
                      {$vo.account_money}
                </td>
                <td>{$vo.time|date="Y-m-d",###}</td>
                <td>
                      <switch name="vo.type">
                        <case value="1">充值申请</case>
                        <case value="2">充值成功</case>
                        <case value="3">充值失败</case>
                        <default />撤销充值
                    </switch>               
                </td>
                <td>
                    <if condition="($vo.type eq 1) and ($vo.genre eq 0)">
                    <a href="#audit" data-toggle="modal" data-rel="tooltip" class="icon icon-color icon-book"title="审核" onclick="$('#up_id').val({$vo.id});"></a>
                    <else />
                    <a href="__APP__/TIFAWEB_DSWJCMS/Fund/recharge_page/{$vo.id}.html"  data-rel="tooltip" class="icon-search " title="查看"></a>
                    </if>
                </td>
              </tr>
</volist>
            </tbody>
          </table>
          <div class="pagination pagination-centered">
          <ul>{$page}</ul>
          </div>
<div>
</div>
<!--审核 start-->
<div id="audit" class="modal hide fade in" >
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>审核</h3>
    </div>
    <div class="modal-body">
    <form method="post"  action='__APP__/TIFAWEB_DSWJCMS/Fund/rechUpda'>
        <input id="up_id" name="id" type="hidden" value="" />
        <p class="form-inline">   
          <label class="radio"><input type="radio" name="type" value="2" checked/> 通过</label>
          <label class="radio"><input type="radio" name="type" value="3" /> 不通过</label>
        </p>
        <div class="span10">
      	  <img id="verifyImg" src='__APP__/Public/verify/' onClick="changeVerify()" title="点击刷新验证码" data-rel="tooltip" style="cursor:pointer;padding-left: 10px;"/>
          <input class="input-large" name="proving" type="text"  style="width:50px;margin-top: 10px;" title="验证码" data-rel="tooltip"/>
          <button class="btn btn-primary" type="submit">
              确认提交
          </button>
      	</div>
    </form>
    </div>
</div>
<!--审核 end-->
<!--导出设置 start-->
<div id="mod" class="modal hide fade in" >
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>导出设置</h3>
    </div>
    <div class="alert alert-info">
        <p>每次导出条数最多5000条，如果数据总合以超5000条请输入上一份导出文件的最大ID值</p>
    </div>
    <div class="modal-body">
    <form method="post"  action='__APP__/TIFAWEB_DSWJCMS/Fund/integExport'>
       <table class="table">
        <tbody>
           <tr>
          <td>开始ID：</td>
          <td>
             	<input name="fid" type="text"  value=''/>
          </td>
          
          </tr>
          <tr>
          <td>导出类型：</td>
          <td>
             	<select name="type">  
                	<option value='' >全部</option> 
                    <option value='1'>充值申请</option>
                    <option value='2'>充值成功</option>
                    <option value='3'>充值失败</option>
                    <option value='4'>撤销充值</option>
                </select>
          </td>
          </tr>
        </tbody>
       	</table>
        <div class="span10">
          <button class="btn btn-primary" type="submit">
              导出
          </button>
      	</div>
    </form>
    </div>
</div>
<!--导出设置 end-->
<!--底部 -->
<script>
function changeVerify(){
    var timenow = new Date().getTime();
    document.getElementById('verifyImg').src='__APP__/Public/verify/'+timenow;
}
</script>
<div id="screening" class="modal hide fade in" >
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>筛选</h3>
    </div>
    <div class="modal-body">
    <form method="get">
       <table class="table">
        <tbody>
          <tr>
          <td>查询：</td>
          <td>
             	<input name="title" type="text" placeholder="订单号/流水号/用户名..." value="{$Think.get.title}">
          </td>
          </tr>
          <tr>
          <td>充值类型：</td>
          <td>
                <select name="genre">  
                	<option value='' >全部</option> 
                    <option value='0' <eq name="Think.get.genre" value="0">selected="selected"</eq>>线下</option>
                    <option value='1' <eq name="Think.get.genre" value="1">selected="selected"</eq>>线上</option>
                </select>
          </td>
          </tr>
          <tr>
          <td>状态：</td>
          <td>
             	<select name="type">  
                	<option value='' >全部</option> 
                    <option value='1' <eq name="Think.get.type" value="1">selected="selected"</eq>>充值申请</option>
                    <option value='2' <eq name="Think.get.type" value="2">selected="selected"</eq>>充值成功</option>
                    <option value='3' <eq name="Think.get.type" value="3">selected="selected"</eq>>充值失败</option>
                    <option value='4' <eq name="Think.get.type" value="4">selected="selected"</eq>>撤销充值</option>
                </select>
          </td>
          </tr>
          <tr>
          <td>操作时间：</td>
          <td>
             	<input name="starttime" type="text" id="starttime" style="width:150px;" value='{$Think.get.starttime}'/>
                &nbsp;-&nbsp;
                <input name="endtime" type="text" id="endtime" style="width:150px;" value='{$Think.get.endtime}'/>
          </td>
          
          </tr>
        </tbody>
       	</table>
        <div class="pull-right">
          <button class="btn btn-primary" type="submit">
              确定
          </button>
      	</div>
    </form>
    </div>
</div>
<include file="Index:footer" />

<!-- 日期选择器 -->
<link type="text/css" rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
  <script src="__PUBLIC__/js/jquery.datetimepicker.js"></script>
<script>
$('#starttime').datetimepicker({lang:'ch',timepicker:false,format:'Y/m/d',});
$('#endtime').datetimepicker({lang:'ch',timepicker:false,format:'Y/m/d'});
</script>